<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
     <f:view>

         <h:head>
         <link href="styles.css" rel="stylesheet" type="text/css"/>
         <title>
             <h:outputText value="#{messages.tituloalterarMontadoraNacional}"/>
         </title>
      </h:head>
         <h:body>
         <h:form>
             <table>
               <tr>
                  <td>
                     <h:outputText value="#{messages.name}"/>
                  </td>
                  <td>
                      <h:inputText value="#{montadoraNacionalController.montadoraNacional.nome}" maxlength="40" />
                  </td>
               </tr>
                <tr>
                  <td>
                     <h:outputText value="#{messages.cnpj}"/>
                  </td>
                  <td>
                      <h:inputText value="#{montadoraNacionalController.montadoraNacional.cnpj}" required="true" onkeypress="formatar(this, '##.###.###/####-##')" maxlength="18"/>
                  </td>
               </tr>
               <tr>
                  <td>
                      <h:outputText value="#{messages.estado}" />
                  </td>
                  <td>
                      <h:inputText value="#{montadoraNacionalController.montadoraNacional.estado}">
                      </h:inputText>
                  </td>
               </tr>
               <tr>
                  <td>
                      <h:outputText value="#{messages.telefoneMontadora}"/>
                  </td>
                  <td>
                      <h:inputText value="#{montadoraNacionalController.montadoraNacional.telefone}" required="true" onkeypress="formatar(this, '##-####-####')" maxlength="12" />
                  </td>
               </tr>
              </table>
             <h:commandButton value="Alterar" action="#{montadoraNacionalController.alterar}"/>
         </h:form>
      </h:body>
   </f:view>
</html>
